package com.guodaxia.gzh.tools;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;

import java.io.File;
import java.util.List;

/**
 * @author guojianquan
 * @date 2025/3/9 14:44
 */
public class excelRead {

    public static void main(String[] args) {
        ImportParams params = new ImportParams();
        params.setStartSheetIndex(0);
//        System.out.println(params.getHeadRows());
//        System.out.println(params.getTitleRows());
        params.setTitleRows(0);
        params.setHeadRows(1);
        List<EmployeeBo> list = ExcelImportUtil.importExcel(new File("C:\\Users\\Administrator\\Documents\\WeChat Files\\wxid_ycvus9w1ay8122\\FileStorage\\File\\2025-03\\en_tbl_cdn.xls"), EmployeeBo.class, params);
        System.out.println(list.size());


    }


}
